package Poly2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:lenovo
 * Date:2024-06-04
 * Time:21:11
 */
public class Worker extends Employee {
    public Worker(String name, double salary) {
        super(name, salary);
    }

    public void work(){
        System.out.println(getName()+" is working!");
    }
    @Override
    public double getSalary() {
        return super.getSalary();
    }
}
